﻿namespace ZyGame.Event
{
    using System;

    public interface IEventHandle : IDisposable
    {
        void Register(string eventName, bool isOnce, Action<object> callback);
        void Unregister(string eventName, Action<object> callback);
        void Notify(string evtName, object evtData);
        void Clear(string evtName);
    }
}